﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class ExamClassSchool
	{
		public ExamClassSchool()
		{
			m_RID = 0;
			m_ExamID = 0;
			m_SchoolclassID = 0;
			m_Grade = 0;
			m_ClassType = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region ExamID
		
		private int m_ExamID;
		
		public int ExamID
		{
			get { return m_ExamID; }
			set { m_ExamID = value; }
		}
		
		#endregion
		
		#region SchoolClassID
		
		private int m_SchoolclassID;
		
		public int SchoolClassID
		{
			get { return m_SchoolclassID; }
			set { m_SchoolclassID = value; }
		}
		
		#endregion
		
		#region Grade
		
		private int m_Grade;
		
		public int Grade
		{
			get { return m_Grade; }
			set { m_Grade = value; }
		}
		
		#endregion
		
		#region ClassType
		
		private int m_ClassType;
		
		public int ClassType
		{
			get { return m_ClassType; }
			set { m_ClassType = value; }
		}
		
		#endregion

        #region SchoolMark

        private string m_SchoolMark;

        public string SchoolMark
        {
            get { return m_SchoolMark; }
            set { m_SchoolMark = value; }
        }

        #endregion 
		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			ExamClassSchool castObj = (ExamClassSchool) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 8;
			hash = hash * 8
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}